package com.xbongbong.workflow.model;


import com.xbongbong.workflow.domain.entity.WorkflowTaskEntity;

import java.util.List;
import java.util.Map;


/**
 */
public interface WorkflowTaskModel {
   Long insert(WorkflowTaskEntity entity);

   void insertBatch(List<WorkflowTaskEntity> list);

   List<WorkflowTaskEntity> findEntities(Map<String, Object> param);

   Integer getEntityCount(Map<String, Object> param);

   void update(WorkflowTaskEntity entity);

   WorkflowTaskEntity getByKey(Long key, String corpid);

    void updateFlowStatusByTaskId(String corpid, Long taskId, Integer flowStatus);

    void deleteByTaskIds(String corpid, List<Long> taskIds);
}
